import Layout from '@/pages/public/layout' // 公共部分

const liveSmall = [{
  path: '/course/live/small',
  component: Layout,
  children: [{
    path: 'list',
    component: () => import('@/pages/course/live_small/list.vue'),
    meta: {
      title: '小班课-列表',
      permission: 'course.live.small.list'
    }
  }, {
    path: 'recommend',
    component: () => import('@/pages/course/live_small/recommend.vue'),
    meta: {
      title: '推荐小班课-列表',
      permission: 'course.live.rec_small.list'
    }
  }, {
    path: 'create',
    component: () => import('@/pages/course/live_small/create.vue'),
    meta: {
      title: '小班课-新建',
      permission: 'course.live.small.create'
    }
  }, {
    path: ':id/edit',
    component: () => import('@/pages/course/live_small/edit.vue'),
    meta: {
      title: '小班课-编辑',
      permission: 'course.live.small.edit'
    }
  }, {
    path: ':id/student',
    component: () => import('@/pages/course/live_small/student/index.vue'),
    meta: {
      title: '学员管理',
      permission: 'course.live.small.student'
    }
  }, {
    path: ':id/student/:user_id(\\d+)/info',
    component: () => import('@/pages/course/live_small/student/learn_info.vue'),
    meta: {
      title: '学员管理- 学习详情',
      permission: 'course.live.small.student'
    }
  }, {
    path: ':id/section',
    component: () => import('@/pages/course/live_small/section/index.vue'),
    meta: {
      title: '小班课-课时管理',
      permission: 'course.live.small.section'
    }
  }, {
    path: ':id/section/:pid/create',
    component: () => import('@/pages/course/live_small/section/create.vue'),
    meta: {
      title: '小班课-课时管理-新建课时'
    }
  }, {
    path: ':id/section/:sid/edit',
    component: () => import('@/pages/course/live_small/section/edit.vue'),
    meta: {
      title: '小班课-课时管理-编辑课时'
    }
  }]
}]

export default liveSmall
